var t = getApp();

Page({
    data: {
        text: ""
    },
    bindinput: function(t) {
        var a = t.detail.value;
        this.setData({
            text: a
        });
    },
    clickSave: function(a) {
        var n = this.data.text;
        JSON.stringify(this.data.data);
        t.network.post({
            url: t.url.editInfo,
            params: {
                signature: n
            },
            before: function() {
                wx.showNavigationBarLoading();
            },
            success: function(a) {
                if (t.util.showToast(a.data.message), 1 == a.data.result) {
                    t.util.showToast(a.data.message);
                    var n = getCurrentPages();
                    n[n.length - 2].setData({
                        needUpdate: !0
                    }), setTimeout(function() {
                        wx.navigateBack({});
                    }, 1e3);
                }
            },
            fail: function() {
                t.util.showToast("修改失败");
            },
            complete: function() {
                wx.hideNavigationBarLoading(), wx.stopPullDownRefresh();
            }
        });
    },
    onLoad: function(a) {
        var n = t.globalData.userInfo;
        this.setData({
            text: n.signature
        });
    },
    onReady: function() {},
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {}
});